import 'package:json_annotation/json_annotation.dart';
import 'package:stock_check/common/model/envir.dart';
import 'package:stock_check/common/model/institutionAsset.dart';

part 'checkInstitutionDetail.g.dart';

@JsonSerializable()

/// 设施设备巡检
class CheckInstitutionDetail{
  int planId; // 计划id
  int recordId; // 任务id
  int userId; // 实施者id
  List<InstitutionAsset> assetsList;
  List<Envir> envirList;
  String content; // 本次巡检结论
  String curStartTimeStr;// 巡检开始时间

  CheckInstitutionDetail({this.planId, this.recordId, this.userId,
    this.assetsList, this.envirList,this.content, this.curStartTimeStr});

  CheckInstitutionDetail.empty();

  //不同的类使用不同的mixin即可
  factory CheckInstitutionDetail.fromJson(Map<String, dynamic> json) => _$CheckInstitutionDetailFromJson(json);

  Map<String, dynamic> toJson() => _$CheckInstitutionDetailToJson(this);
}
